package com.htandroid.htandroid.entity;

public class UserAuth {
	private String cauth_id;
	private String cauth_name;

	public UserAuth(   ) {
	}

	public UserAuth(String cauth_id, String cauth_name) {
		this.cauth_id = cauth_id;
		this.cauth_name = cauth_name;
	}

	public Boolean authfind(String cauth_id_o){
		if (this.cauth_id == null) return false;
		if (this.cauth_id.toLowerCase().equals("admin")) return true;
		return this.cauth_id.contains(cauth_id_o);
	}
	public String getCauth_id() {
		return cauth_id;
	}
	public void setCauth_id(String cauth_id) {
		this.cauth_id = cauth_id;
	}
	public String getCauth_name() {
		return cauth_name;
	}
	public void setCauth_name(String cauth_name) {
		this.cauth_name = cauth_name;
	}
	
}
